﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PublicSite.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="BigLotterySyndicate.Login.Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="content-wrapper">
<table cellpadding="2" cellspacing="2">
    <tr><td colspan="2"><i>Please use your big:group credentials to log in.</i></td></tr>
    <tr>
        <td>Username:</td>
        <td>
            <asp:TextBox ID="TextBoxUserName" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="None" ValidationGroup="LoginForm"  ControlToValidate="TextBoxUserName" ErrorMessage="Please enter your username."></asp:RequiredFieldValidator>
        </td>
    </tr>   
     <tr>
        <td>Password:</td>
        <td>
            <asp:TextBox ID="txtbigPassword" TextMode="Password" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Display="None" ValidationGroup="LoginForm"  ControlToValidate="txtbigPassword" ErrorMessage="Please enter your domain password."></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr style="visibility: hidden"><td colspan="2"><asp:CheckBox ID="chbDomain" runat="server" Checked="True" />Use domain authentication</td></tr>
    <tr>
        <td colspan="2" style="text-align:right">
            <asp:Button ID="ButtonLogIn" runat="server" CssClass="wesc-button" ValidationGroup="LoginForm" Text="Enter" onclick="ButtonLogIn_Click" />
            <asp:CustomValidator ID="CustomValidator1" runat="server" Display="None" ValidationGroup="LoginForm"
                ErrorMessage="Entered credentials are not valid. Access has been denied." 
                onservervalidate="CustomValidator1_ServerValidate"></asp:CustomValidator>
        </td>       
    </tr>
</table>
    <asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="LoginForm" HeaderText="" runat="server" />
    <p style="color:white">
    <%= PrintLdapError() %>
    </p>
    <p style="visibility: hidden"><a href="/Login/Reset.aspx">Forgotten password</a></p>
</div>

    <div class="content-wrapper-right">
<img src="../Assets/Images/lotto_badge.png" alt="Lotto" />
<img src="../Assets/Images/euro_badge.png" alt="Euro Millions" />
<img src="../Assets/Images/health_badge.png" alt="Health Lottery" />
</div>
</asp:Content>
